<extend name="Base/common" />
<block name="main_content">
<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
            	<include file="Public/nav" />
            </h3>
        </div>

        <div class="tab-content mod-content">
            <form method="post" action="{:U('add')}" onsubmit="return false;" id="form" class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">模型标识:</label>

                        <div class="col-sm-5 col-xs-8">
                            <input class="form-control" type="text" name="name">
                            <span class="help-block">（请输入文档模型标识）</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">模型名称:</label>

                        <div class="col-sm-5 col-xs-8">
                            <input class="form-control" type="text" name="title">
                            <span class="help-block">（请输入模型的名称）</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">模型类型:</label>

                        <div class="col-sm-5 col-xs-8">
                            <select name="extend" class="form-control">
                                <option value="0">独立模型</option>
                                <option value="1">文档模型</option>
                            </select>
                            <span class="help-block">（目前支持独立模型和文档模型）</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">引擎类型:</label>

                        <div class="col-sm-5 col-xs-8">
                            <select name="engine_type" class="form-control">
                                <option value="MyISAM">MyISAM</option>
                                <option value="InnoDB">InnoDB</option>
                                <option value="MEMORY">MEMORY</option>
                                <option value="BLACKHOLE">BLACKHOLE</option>
                                <option value="MRG_MYISAM">MRG_MYISAM</option>
                                <option value="ARCHIVE">ARCHIVE</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">是否需要主键:</label>

                        <div class="col-sm-5 col-xs-8">
                            <select name="need_pk" class="form-control">
                                <option value="1" selected="selected">是</option>
                                <option value="0">否</option>
                            </select>
                            <span class="help-block">（选“是”则会新建默认的id字段作为主键）</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-5 col-xs-8">
                            <input type="button" value="保存设置" class="btn btn-primary center-block" onclick="AWS.ajax_post($('#form'));" />
                        </div>
                    </div>
                </form>
        
        </div>
    </div>

</div>
</block>